package pCloud.transport;

import org.apache.log4j.Logger;

import pCloud.message.Message;
import pCloud.service.ProtocolHandle;

public interface Communicator {
	public void init(Logger l);
	
	public void addConnection(ProtocolHandle ph) throws Exception;
	
	public void removeConnection(ProtocolHandle ph) throws Exception;
	
	public TransportHandle getConnection(Object id) throws Exception;
			
	public void send(Object id, Message msg) throws Exception;
	
	public Logger getLogger();
}
